package system

import (
	"github.com/gin-gonic/gin"
	"liuche17.cn/go-blog/server/middleware"
)

type DashBoardRouter struct{}

// InitDashBoardRouter 仪表盘路由初始化
func (s *DashBoardRouter) InitDashBoardRouter(Router *gin.Engine) {
	dashBoardRouter := Router.Group("/admin/dashboard").Use(middleware.JWTAuth())
	{
		dashBoardRouter.GET("statistics", dashBoardApi.GetStatistics)
		dashBoardRouter.GET("publishArticle/statistics", dashBoardApi.GetDateArticlePublishCount)
		dashBoardRouter.GET("pv/statistics", dashBoardApi.GetWeekArticlePVCount)
	}
}
